package es.abredatos.energyes;

import static org.junit.Assert.*;

import java.sql.Connection;

import org.junit.Test;

class DataTest extends GroovyTestCase {

	
	@Test
	public final void testGetFiles() {
		
		def url = new URL("http://www.mityc.es/energia/balances/Publicaciones/ElectricasMensuales/2009/Agosto%202009.zip")
		def connection = url.openConnection()
		connection.connect()
		assert connection.responseCode in [200,201]
	}

}
